package com.whut.service;

import com.whut.model.Newjudgeinfo;
import com.whut.model.Newprefixsystem;
import com.whut.model.Newspecialistinfo;
import com.whut.model.Prefixsystem;

import java.text.DateFormat;
import java.text.DecimalFormat;
import java.util.List;

public interface NewFuzzyService {
   Object getAllSpecialist(Integer curPage, Integer pageSize);

    String addSpecialInfo(Newspecialistinfo newspecialistinfo);

    String updateNewSpecialInfo(Newspecialistinfo newspecialistinfo);

    Object getAllNewJudgeInfo(int specialistId, int id3, int nodeLevel);

    String addNewJudgeInfos(String judgeInfos);

    String deleteByNewSpecialId(int specialistId, int id3, int nodeLevel);

    Object getChooseInfoForNewJudege(int preNum, int nodeDepth);

    String addNewJudgeItems(int number, int specialistId, int id3, int nodeLevel);

    String editNewJudgeInfo(Newjudgeinfo newjudgeinfo);

    String deleteSelectedItem(int number, int specialistId, int id3, int nodeLevel);

    String deleteSpecialById(int mkey);

    String deleteNewMemberShipInfo();

    String addNewMemberShipInfo(String memberShipInfos);

    Float newConsistCheck(int specialistId, int id3, int nodeLevel);

    Object getAllNewJudgeResult(int checkId, int operator, int calcDepth, int firstId);

    float calcPoint(List<Float> fuzzyConclusion);

    List<Object> getUsedItemByDepth(int nodeDepth, int preNum);

    List<Integer> getAllCombinedTerms(Integer[] targets);

    List<Newprefixsystem> getCombinedTermsByTarget(Integer target);

    List<Float> findMemberShipByRisksNum(List<Integer> risksNum);

    Integer getCombinedMaxRiskIndex(List<Float> fuzzyConclusion);

    List<Float> correctRisk(List<Float> risksList,String precisionString);

    List<Object> getNewItemByDepth(int nodeDepth, int preNum);

    Double float2double (float f, DecimalFormat df);

}
